package com.dragon.modules.yuegou.model.act;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.dragon.modules.yuegou.entity.act.OffActivityEntity;
import com.dragon.modules.yuegou.enums.act.OffActivityStatus;
import com.dragon.modules.yuegou.enums.act.ParticStatus;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 线下抽奖活动表模型类
 * 
 * @author pbuilder generated
 * @date 2019-11-19 10:57:52
 * @company sgy
 * @version 2.0
 * @see Length 长度限制
 * @see NotNull 对象非空
 * @see NotEmpty 字符串、集合、表、数组非空
 */
public class OffActivity extends OffActivityEntity {

	@ApiModelProperty("奖品列表")
	private List<OffPrize> offPrizes;
	
	@ApiModelProperty("会员参与列表")
	private IPage<OffMemberActivity> memberActiveIpage;
	
	@ApiModelProperty("参与状态：0-未开始-NOT_PARTIC 1-已参与-ALREADY_INVOLVED  2-已中奖-HAS_WON  3-未中奖-NOT_WON  4-已结束-OVER")
	private ParticStatus particStatus;
	
	public ParticStatus getParticStatus() {
		return particStatus;
	}

	public void setParticStatus(ParticStatus particStatus) {
		this.particStatus = particStatus;
	}

	public IPage<OffMemberActivity> getMemberActiveIpage() {
		return memberActiveIpage;
	}

	public void setMemberActiveIpage(IPage<OffMemberActivity> memberActiveIpage) {
		this.memberActiveIpage = memberActiveIpage;
	}

	public List<OffPrize> getOffPrizes() {
		return offPrizes;
	}

	public void setOffPrizes(List<OffPrize> offPrizes) {
		this.offPrizes = offPrizes;
	}

	/**
	 * 构造一个空线下抽奖活动表模型对象
	 */
	public OffActivity(){
		super();
	}
	
	/**
	 * 依据实体对象的信息构造一个线下抽奖活动表模型对象
	 * 
	 * @param entity 实体对象
	 */
	public OffActivity(OffActivityEntity entity){
		super(entity);
	}

	/**
	 * 依据其它对象的信息构造一个线下抽奖活动表模型对象
	 * 
	 * @param other 其它对象
	 */
	public OffActivity(OffActivity other){
		super(other);
	}


	@Override
	public String getId() {
    	return id;
    }

    /**
	 * 设置
	 * 
	 * @param id 
	 * @return 当前对象
	 */
    public OffActivity id(String id) {
    	this.id = id;
    	return this;
    }

	@Override
	public String getBusdId() {
    	return busdId;
    }

    /**
	 * 设置商圈ID
	 * 
	 * @param busdId 商圈ID
	 * @return 当前对象
	 */
    public OffActivity busdId(String busdId) {
    	this.busdId = busdId;
    	return this;
    }

	@Override
	public String getName() {
    	return name;
    }

    /**
	 * 设置名称
	 * 
	 * @param name 名称
	 * @return 当前对象
	 */
    public OffActivity name(String name) {
    	this.name = name;
    	return this;
    }

	@Override
	public String getUrl() {
    	return url;
    }

    /**
	 * 设置跳转参加活动地址
	 * 
	 * @param url 跳转参加活动地址
	 * @return 当前对象
	 */
    public OffActivity url(String url) {
    	this.url = url;
    	return this;
    }

	@Override
	public String getRule() {
    	return rule;
    }

    /**
	 * 设置规则
	 * 
	 * @param rule 规则
	 * @return 当前对象
	 */
    public OffActivity rule(String rule) {
    	this.rule = rule;
    	return this;
    }

	@Override
	public Boolean getPublishStatus() {
    	return publishStatus;
    }

    /**
	 * 设置上架状态 0-下架；1-上架
	 * 
	 * @param publishStatus 上架状态 0-下架；1-上架
	 * @return 当前对象
	 */
    public OffActivity publishStatus(Boolean publishStatus) {
    	this.publishStatus = publishStatus;
    	return this;
    }

	@Override
	public OffActivityStatus getStatus() {
    	return status;
    }

    /**
	 * 设置[枚举]活动进行状态：0-未开始-NOT_STARTED、1-正在进行-ONGOING、2-已结束-OVER
	 * 
	 * @param status [枚举]活动进行状态：0-未开始-NOT_STARTED、1-正在进行-ONGOING、2-已结束-OVER
	 * @return 当前对象
	 */
    public OffActivity status(OffActivityStatus status) {
    	this.status = status;
    	return this;
    }

	@Override
	public LocalDateTime getDrawTime() {
    	return drawTime;
    }

    /**
	 * 设置活动日期
	 * 
	 * @param drawTime 活动日期
	 * @return 当前对象
	 */
    public OffActivity drawTime(LocalDateTime drawTime) {
    	this.drawTime = drawTime;
    	return this;
    }

    @Override
	public LocalDateTime getCreatedTime() {
    	return createdTime;
    }

    /**
	 * 设置
	 * 
	 * @param createdTime 
	 * @return 当前对象
	 */
    public OffActivity createdTime(LocalDateTime createdTime) {
    	this.createdTime = createdTime;
    	return this;
    }

	@Override
	public String getCreatedBy() {
    	return createdBy;
    }

    /**
	 * 设置
	 * 
	 * @param createdBy 
	 * @return 当前对象
	 */
    public OffActivity createdBy(String createdBy) {
    	this.createdBy = createdBy;
    	return this;
    }

	@Override
	public LocalDateTime getModifiedTime() {
    	return modifiedTime;
    }

    /**
	 * 设置
	 * 
	 * @param modifiedTime 
	 * @return 当前对象
	 */
    public OffActivity modifiedTime(LocalDateTime modifiedTime) {
    	this.modifiedTime = modifiedTime;
    	return this;
    }

	@Override
	public String getModifiedBy() {
    	return modifiedBy;
    }

    /**
	 * 设置
	 * 
	 * @param modifiedBy 
	 * @return 当前对象
	 */
    public OffActivity modifiedBy(String modifiedBy) {
    	this.modifiedBy = modifiedBy;
    	return this;
    }

	@Override
	public Boolean getDel() {
    	return del;
    }

    /**
	 * 设置删除 0-未删除；1-已删除
	 * 
	 * @param del 删除 0-未删除；1-已删除
	 * @return 当前对象
	 */
    public OffActivity del(Boolean del) {
    	this.del = del;
    	return this;
    }

	@Override
	public LocalDateTime getDelTime() {
    	return delTime;
    }

    /**
	 * 设置
	 * 
	 * @param delTime 
	 * @return 当前对象
	 */
    public OffActivity delTime(LocalDateTime delTime) {
    	this.delTime = delTime;
    	return this;
    }

	@Override
	public String getDelBy() {
    	return delBy;
    }

    /**
	 * 设置
	 * 
	 * @param delBy 
	 * @return 当前对象
	 */
    public OffActivity delBy(String delBy) {
    	this.delBy = delBy;
    	return this;
    }
}
